Added AJX exception handling