Closing the Programm now works