Use closure to prevent removing a different event handler