Fixes #83065634, clean up read logic to remove race conditions

Signed-off-by: Mike Gehard <mgehard@pivotal.io>
Remove loggingstream; didn't provide functionality after refactor

[#83065634]

Signed-off-by: John Tuley <jtuley@pivotal.io>
Close listeners to prevent race conditions

Signed-off-by: John Tuley <jtuley@pivotal.io>
Fix race condition in deaagent

Signed-off-by: Georg Apitz <gapitz@pivotal.io>