Fix for leaky len call

I noticed that len was leaking file descriptors again.  This fix should work when just opening a file and getting its length.  

I also modified your old tests for finding leaky files to run and fail automatically instead of having to do it manually.