LockExistsError

Hello,

I am downloading the content from several ipfsHashes in a loop and it seems like when I do that I get a LockExistsError. I already found that thread Close ipfs node js-ipfs and I tried to solve it with the node.stop() , but that apparently doesn’t help me. How can I avoid that error to happen?

Thank you