Force exit while loop