Display error dialog for exceptions

occuring in event handlers (otherwise they're just printed to the
console). Displays once and let's the user save the file. However,
currently the app freezes when the ok button is pressed. A way to
force this dialog: delete pages while the renderer is still
rendering thumbnails.