runner: fixed case revealed by the runner_stress_test where postTerminate
would be invoked twice due to stdInSink not being reset when a wakeup event is
being handled
runner: request closing of stdInSink only if not already closed
Merge branch 'master' into http-client-ih