Do not hang if interval is 0 or not a number
Merge pull request #69 from linquize/hang

Do not hang if interval is 0 or not a number