fails:IO#sync= raises an IOError on closed stream
fails:IO#sync raises an IOError on closed stream
