set start button checkbox to off if stopping due to error
break out early if can't resolve hostname
wait for worker thread to exit before stop() ends

Since "bool running" is volatile, we can use it to signal the send
thread to break out of its loop.