Display error alert in main thread