handling pyexec emergency stop