Added model.cancel for canceling 'when' callbacks