Minor: fixed graph closing on MT env