Abort transition when on_transition returns false