Server shutdown on browser close