added dialog on failing to connect