db.close() and db.destroy() should take callbacks