Cleanup

After the updated utxo selection process, some of the old code related to coinbase is no longer required.

Also re-used `safeClose` and fixed hang when `a.utxo` receives and blocks.