Fix crash on shutdown
Fix crash on shutdown

PR #185 changed some structs to be static instead of
dynamically allocated. Unfortunately the corresponding
deallocations were not removed causing some environments
to abort() when freeing the invalid (non-heap) pointers.

Fixes: #186

hhellyeribm/appmetrics,stalleyj/appmetrics,aaroncollins/appmetrics,mattcolegate/appmetrics,seabaylea/appmetrics,hhellyeribm/appmetrics,seabaylea/appmetrics,hhellyeribm/appmetrics,seabaylea/appmetrics,mattcolegate/appmetrics,mattcolegate/appmetrics,RuntimeTools/appmetrics,DanCunnington/appmetrics,sjanuary/appmetrics,sjanuary/appmetrics,RuntimeTools/appmetrics,stalleyj/appmetrics,aaroncollins/appmetrics,aaroncollins/appmetrics,DanCunnington/appmetrics,sjanuary/appmetrics,hhellyer/appmetrics,hhellyer/appmetrics,hhellyer/appmetrics,aaroncollins/appmetrics,kgriesh/appmetrics,hhellyeribm/appmetrics,seabaylea/appmetrics,hhellyeribm/appmetrics,seabaylea/appmetrics,kgriesh/appmetrics,sjanuary/appmetrics,DanCunnington/appmetrics,stalleyj/appmetrics,stalleyj/appmetrics,DanCunnington/appmetrics,kgriesh/appmetrics,stalleyj/appmetrics,RuntimeTools/appmetrics,mattcolegate/appmetrics,aaroncollins/appmetrics,DanCunnington/appmetrics,RuntimeTools/appmetrics,RuntimeTools/appmetrics,hhellyer/appmetrics,mattcolegate/appmetrics,hhellyer/appmetrics,kgriesh/appmetrics