Added try/except block around displaying message dialog since it appears
on windows vista to throw an exception. Since the dialog is no necessary,
the dialog can just not be displayed.