tree collapses when one mongo is closed