handle ctrl+c and cleanup before exit

also use plain old defer to shutdown actors
and miner with/without panic