opening program works, not closing program yet