Try to avoid race condition with database rollbacks