Explicit calls to set_session(0) will disconnect the callback to session_going_away(). So don't do that.
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.