sign raw txn before sending to the pool
move stop mining handler out of notfn handler
fix break in mining signal handler