Add "sync"/flush call to hopefully sort out commit issue
Authored by: kleinebre 2012-10-08
Parent: [r93]
Child: [r95]