more exporting improvements, reset stuff when hearthstone is closed