Only attempt to close our peakfile '_fd' if we have a valid handle

(yesterday's fix was needed in a 2nd place)