Most motorcycles are fitted with an engine cut-out switch. This is designed to stop the engine in an emergency and so reduce the risk of electrical sparks starting a fire.