Small fix for thread destruction.
Add possibility to destroy core buffers at program exit.
Redo profiling.
Move profiler to buffer instead of allocator level.