Bitcoin RPC. How to close wallet files opened by bitcoin? Bitcoin RPC unloadwallet command does not close files opened by bitcoind process.
I want to generate addresses for multiple wallets (over 1000) and get 'Too many opened files error'.
Is there a way to close files, associated with unloaded wallet?

.bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/.walletlock
.bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/db.log
.bitcoin/testnet3/wallets/3f7b93e26b498be43235a9beda796d8d/database/log.0000000001
This is a known bug and has been fixed for 0.18 which will be released in the coming weeks.