[PATCH v3 1/2] mf: Release topologies when shutting down the session.