def shutdown(env):
    planner = get_planner_instance(env)
    planner.shutdown()

    executor = get_executor_instance(env, None)
    executor.shutdown()

    mapper = get_mapper_instance(env)
    mapper.shutdown()

    updater_instances = get_updaters(env)
    for updater in updater_instances:
        updater.shutdown()