Added option to raise original exception to QGIS.
Fixed bug in UI.