added cancel-function to RUNNING-mode
Added cancel function to HOMING-mode