- fixed some memory leaks
- atexit moved to memory tracker