close STDERR or warn "Couldn't close STDERR"; open STDERR, ">", "/dev/null" or exit 1; # Nope: die "Can't open STDERR to /dev/null: $!";