Free all event nodes at once on exit.

Change-Id: I12e5a43c71243b0774d049b25973d34ae41b6078