PLINK-451: check if manager is null before closing