core: kill queues also after finalize, not only on abort

We are having a memory leak after running the archiver many times and found that queues are not being killed on finalize, only on abort. So I added this, creating the branch from commit b759789 (release 0.12.0).
If the fix is good for you, could release it as version 0.12.1?

Thank you