call done if not a stdio stream
1.6.1