Fix: the auth manager now removes auth methods when the session has been closed