Handle Stop request from Simulink correctly