server and async flush() and close() calls

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