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