Move sdb_hook deinit in the proper place