Readers and writers are not asynchronous

Seems to fix #116.
Merge pull request #121 from ufo-kit/fix-file-flushing

Readers and writers are not asynchronous