nix defensive close as it is handled upstream