Exit when Server.stop() is called.