normally you need to commit your transaction, i think close is not needed. Sorry im not sure if this applies to badger