Update handle_config_terminate API