Only try to shut down work cleanly if we've successfully connected and started mining.
diff --git a/cgminer.c b/cgminer.c
index 5a8169d..55d3943 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -1983,6 +1983,9 @@ static void __kill_work(void)
struct thr_info *thr;
int i;
+ if (!successful_connect)
+ return;
+
applog(LOG_INFO, "Received kill message");
applog(LOG_DEBUG, "Killing off watchpool thread");