kill configuration thread when switch closes connection