Fix the cleanup, when transport closed, we should emit a disconnect to upper namespace