Removed SetMultiMap used for tracking handlers. Now added directly to
the document instead so should never have to worry about them not being
correctly cleaned up.