prevent hang during actor shutdown

when the simulation is over and the miner is shutdown, the `txErrchan` was being blocked. Updated to handle it and quit accordingly.