Add a comment with this info, and add a counter to protect against an infinite loop. Maybe add a delay of 100ms and count 3 retries?