Release any resources on a database close