prevent to close the session