catch "unable to connect" exception