@Override
    public synchronized void close(final TaskAttemptContext context) throws IOException {
        this.out.close();
    }
@author Daniel Kuppitz (http://gremlin.guru)
hadoop-gremlin/src/main/java/org/apache/tinkerpop/gremlin/hadoop/structure/io/script/ScriptRecordWriter.java