Rollback a transaction only if we have neither finished committing or rolling back