Fix some soft crashes on failing to show an error message pop-up, and also
better explain the error...