def stop_server(server, config_filename):
    factory = connect_to_server(config_filename)
    factory.cleanup()
    server.terminate(timeout=10)


# Remote process code.
Shutdown :class:`ObjServerFactory` specified by `config_filename` and
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/objserverfactory.py/stop_server