fails:IO#binmode raises an IOError on closed stream
