fix console exit