Log task exceptions, insert to changelists tables in a single query