emergencyStop function