Fix closing script window #78