Added MessageDialog for exceptions