Task 1 done, but window closing causes error.