Flush after writing data.

This ensures that data is written to the file as it comes in, instead of when
the file is closed.
Release 0.2.0.