It could also be an improper float setting in the carb - if set wrong or bad, hard braking could sent it to a point that the needle valve shuts off the gas to the motor. What carb do you have?