Move gc disable functionality below destructors