Finally got global Ajax error logging and displaying with dialog.