Protect 'disconnect' from a dead weak pointer.