catch exceptions from https://github.com/square/okhttp/issues/875