A hook method that's called during graceful shutdown to provide safety for data managed by this service.
Shutdown process is blocked until this method returns or shutdown timeouts. If this method does not
return in time, then it's considered as failed to gracefully shutdown.
timeout - timeout for graceful shutdown
unit - time unit
true if graceful shutdown is successful, false otherwise