Program closes on window closing.