Add helper to clear node event handlers