Do not use InvalidParameterException for parameters check
exit gracefully when encountering Okhttp issue https://github.com/square/okhttp/issues/658