Issue #421 - Fixed sleep timeout going negative
Issue #421 - maxSleepTimeMs changed to long
Merge pull request #422 from peterox/issue_421

Issue #421 - Fixed sleep timeout going negative