[FEATURE] Added rollback on ledger database errors