check if session is nil before abandon