I solved this by building in an error handler which pauses the program for 3 sec and then reruns the loop.