Add single event posting and shutdown at the end of the test to avoid (i
think) memory leaks of repeated runs.