Changes to exit handler and run slug_memstats on standard test.