fix for autostart not stopping when countdown-window is closed