Added support for dismissing the application error dialog if it is displayed