catch more specific errors for connection failure