Cosmetics: rollback transaction in case of an error