Give 1 second to server thread shutting down.