better error msg for connection failure