And at long last, a fix for the bug that started it all, #72 :P
This just replaces the QMessageDialog's for the close event with our own. Todo: figure out how to make the dialogs modal.