Added exception handling if haproxy is not configured correctly