close the database, call the closer