testing emergency stop on error condition