stop the service in time