add failures time limit
Merge pull request #139 from ianshward/failures-limit

add failures time limit