kill actors and btcd in error cases
handle interrupt in mining
use SIGINT instead of killing process
func to exit btcd process