Ensure all events are properly removed in unassignEvents call, and all timers are cleared. Fixes #648