Better handling of WX exceptions, API exceptions.