Maybe, being extra cautious here, but I think, we should explicitly terminate the loop here. 
Something like `sleep(5000); continue;`. Consider creating a sleep() method.