Catch errClosing error when TCP and UDP proxies are terminated.

This removes a couple of spurious error messages when running the tests.