Sleep after process killing to wait for the service to terminate