Don't stop monitoring after five retries

(cherry picked from commit 51c840705bc4eea9e44f658ab19002a67692af01)
Merge pull request #39 from claco/v4.2.2rc

Merged automatically by jenkins after successful build test