fix dbs block closing.
Merge pull request #4944 from ticoann/fix_dbs3_closing

fix dbs block closing.