remove connected and failed listeners on close