Fixed #1: Was a problem with the writer not flushing.