flush underlying streams on close()/sync()
Merge branch 'develop' of https://github.com/pocoproject/poco into develop