Update addons.markdown

Updates addons.markdown to mention AtExit() function.  Addresses issue #8324.