wait for terminating until `postQueue` is empty
wait up to 30 seconds for termination
for stmt is missing...
add test case for termChan