fixed error catching for server connect fail and facilities not found error