make sure that we do not accecpt new sessions while shutting down.