Fix crash when finishing duel_server.