exception handler that displays a dialog - tweak