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.