1) Remove either the OK or cancel button, as there is no difference between them 2) Main QGIS window should not be raised above the plugin window after displaying an error message. EDIT: both done