Update addons.markdown

Updates addons.markdown to mention AtExit() function.  Addresses issue #8324.
This might be best phrased as "Registers exit hooks that run after the event loop has ended, but before the VM is killed." Also, it would be good to include the arguments, argument types, and a quick code example of how you might
use the function.