add proxy pipe error handling