double separator problem, closing instream at end