let Serve exit when server is stopped