Write dirty tx and utxo files when rescans finish.