Unregister event handler after docs are rendered

This fixes the case where we're generating multiple docs
in a single invocation (such as html generation).  By
unregistering the event handler, a new instance can come
along and register itself as the object to use for new doc
events.


Don't have any tests for this currently, verified that manually building the html has the same output as the manpage version.