Fix server not shutting down?