Warte bis das Programm beendet ist