added dialog boxes to handle connection failure

with retry and exit buttons