Make sure the response has been written before the latch is released
Minor graceful shutdown improvements
Merge pull request #288 from stuartwdouglas/WFCORE-177

WFCORE-177 fix intermittent failure in suspend test case