Complete shutdown

Recently I was using my 500 efi x2 towing a fairly heavy drag to work on my drive way. I was using the tow bar with a chain in high gear. All of a sudden the engine just quit. I assumed there was an auto shutoff. After waiting a few seconds I tried to restart with success. I dragged some more then it shutdown again. It started again. Then much to my surprise the light came on and said hey dummy you should be doing this in low gear. After that it did not quit. So the question is … Is the machine set with an auto shutoff? If not what would be a solution to the shutoff. Thank you