Weak event handler sample