add try: except: to force reboot at forced close, and edit closing method