Close out of while loop