Fix wx exit