Stop the service correctly