Problem: not clearing timer identifiers properly

When resetting timers, can leave timer handles in inconsistent state,
causing timers to expire immediately, causing server and client to
go haywire.

Fix: nullify timer handles when resetting timer.
Merge pull request #119 from hintjens/master

Problem: not clearing timer identifiers properly