main_ttl_close