Dir#close closes the stream and fd and returns nil
Dir#close raises an IOError when called on a closed Dir instance
