Fix a memory leak at shutdown in the ControllerMesh.