fixed unclosed eps writer.