Logs slave transaction pushing failures at most every 5 seconds

or if different types of exceptions gets thrown. Introduces a little
utility CappedOperation which abstracts those conditions.
Merge pull request #2225 from tinwelint/1.9-capped-operation

Logs slave transaction pushing failures at most every 5 seconds