readded quit case which was lost in adding new core file for GUI