Added ability to stop accepting new connections but continue serving already existed. Required for graceful shutdown.