counting errors and stopping due to OAuthException limit