Destroy timer on error

Show an error message and cancel a timer when the callback fails instead
of infinitely looping.
Merge pull request #23 from Mughisi/TimerChanges

Destroy timer on error