Check main relay, sounds like it may be sticking. Replace it and fuel pump relay to be sure. If not relay, check electrical portion of ign switch, wouldnt be very likely though based on the "only happens after it runs for a while" part. Hope this helps.
-Ben