wrap timed loops with try block to catch timeout
Merge pull request #15 from will-weiss/wrap-direct

wrap timed loops with try block to catch timeout