program now quits when done