Problems like this can be a pain to diagnose. First thought is, after executing for 4-5 hours and depending upon how/if you are saving info in memory you could be running out of memory...