Removed bit of leftover code preventing the program from closing properly