Timeout and overflow of arduino

"Just stop" is not really helpful to someone who doesn't know where to look for the brake peda

Well, OP has been asked to post ALL of his/her code, in one piece. In my mind, that is equivalent to showing him/her where the brake pedal is, and explaining what it is for.