Use 'custom' namespace for click handers defined by the authors

[#44616231]

Also ensure that after reset all handers are removed.