Added possibility to show exceptions as dialog.