Clean bulk jobs after Query#update/destroy() query error

Query#update() sometime doesn't clean up jobs for bulk updating. It is caused by query error and error handling doesn't cancel it.