def METHOD_NAME():
    server_th = run_thread(lambda: app.run(host='0.0.0.0', port=API_PORT, threaded=True))
    def teardown():
        logger.info('Terminating...')
        for lab in list(labs.values()):
            try:
                lab.destroy()
            except Exception as ex:
                logger.exception(ex)
        server_th.terminate()
    loop_forever(teardown)