Catch errClosing error when TCP and UDP proxies are terminated.