added error handler if proxy cannot connect to target server