I hate it when that happens, same when a bobbin runs out on a tricky bit and you haven't noticed!
I define tricky bits as those that has me sticking out my tongue or biting my lip my school teacher used to shout 'JP you're supposed to cut and sew the material not lick and chew it!'