fails:IO#inspect contains "(closed)" if the stream is closed
