logic to cancel learner, aka set learner to null ==> giving resources free