writeout while waiting

Signed-off-by: Mark Kelly <mark.kelly@lexisnexis.com>