Unload modules when a factory loses its connection