show error dialog when exceptions occur