fix utxo deletion and closing