Several free() during shutdown. Issue #60