Added emergency stop support.
Added emergency stop support.