Cleanup committed transactions before starting up.
Reduce usage of special exception throwing method.