prevent fd leaks, just in case.