Hello.
If you don't use DB_CLOSE_DELAY setting all these objects can be garbage collected, but it's a bad practice anyway.
If you use it, it may prevent deletion of database when all connections were closed or garbage collected, so it can create a memory leak.