clean up references to dead connections