fix stop to allow to restart quickly the service