Added modal error dialog.