fix race condition with detecting disconnects via control port