Properly stop all services when quitting.