Catch errors during AQL execution