Fix for handling stop request from Simulink
Now after pressing STOP from Simulink stop_func terminates rtExtModeOneStep task but Simulink doesn't notice that.