fix bugs in legacy proxy

- do not panic when non-log message envelope are received
- close legacy message channel
- add debug logging

[#76285060]

Signed-off-by: Joseph Rodriguez <jrodriguez@pivotal.io>