Make bindHttp more robust