fixed busy-waiting in main loop due to improper conversion from msec to usec.
Fixed double free.
Fix up test.
Reduce chatty debug output.
Serious bug fix: reset sent_result_msg flag when worker disconnects
and starts with another master.
Don't pause five seconds after receiving Ctrl-C.