Show a dialog upon completion only when errors occur