Close internal battle server on shutdown