Show exception message when failing to import mainwindow