Execute irreversible actions only when transactions are not rolled back