exit on disconnect, so we can restart the service from the outside