added __weakref__ to __slots__ of Handler