Fix ECONNREFUSED error