Fix socket hangups in http-proxy crashing substrat