watchdog should only kill builder if it's waiting for keepalive

We want to avoid having the watchdog thread kill the builder
while it's trying to reconnect to the webapp.