Close both sides of the channel on error
Use host string in X-Forwarded-For header