Drop the database with the _ts and ns entries when thread stops