Finished basic level 2, error handing screws up exit while loop