Proper freeing of resources (e.g. output-thread) when connection is
closed [JENKINS-25349]
Don't know why I disabled this initially.