Well I wouldn't just blindly LOOP either. If the app hangs or otherwise has an issue you will stay in that loop forever.

I'd add time or other method to exit out of the loop if things didn't go as planned.

Yes, adding error checking would be a good thing.