Handle errors writing to the client in downstream.