jsonapi: Rollback transactions on error