public void cleanUpForQuit() {
        Signlink.reporterror = false;
        try {
            if (socketStream != null) {
                socketStream.close();
            }
        } catch (Exception exception) {
        }
        socketStream = null;
        stopMidi();
        if (mouseRecorder != null) {
            mouseRecorder.running = false;
        }
        mouseRecorder = null;
        onDemandFetcher.dispose();
        onDemandFetcher = null;
        aStream_834 = null;
        outputStream = null;
        aStream_847 = null;
        inputStream = null;
        anIntArray1234 = null;
        aByteArrayArray1183 = null;
        aByteArrayArray1247 = null;
        anIntArray1235 = null;
        anIntArray1236 = null;
        intGroundArray = null;
        byteGroundArray = null;
        sceneGraph = null;
        collisionMaps = null;
        anIntArrayArray901 = null;
        anIntArrayArray825 = null;
        bigX = null;
        bigY = null;
        aByteArray912 = null;
        aGraphicsBuffer_1163 = null;
        minimapCanvas = null;
        gameScreenCanvas = null;
        aGraphicsBuffer_1166 = null;
        aGraphicsBuffer_1123 = null;
        aGraphicsBuffer_1124 = null;
        aGraphicsBuffer_1125 = null;
        backLeftIP1 = null;
        backLeftIP2 = null;
        backRightIP1 = null;
        backRightIP2 = null;
        backTopIP1 = null;
        backVmidIP1 = null;
        backVmidIP2 = null;
        backVmidIP3 = null;
        backVmidIP2_2 = null;
        invBack = null;
        mapBack = null;
        chatBack = null;
        backBase1 = null;
        backBase2 = null;
        backHmid1 = null;
        sideIcons = null;
        redStone1 = null;
        redStone2 = null;
        redStone3 = null;
        redStone1_2 = null;
        redStone2_2 = null;
        redStone1_3 = null;
        redStone2_3 = null;
        redStone3_2 = null;
        redStone1_4 = null;
        redStone2_4 = null;
        compass = null;
        hitMarks = null;
        skullIcon = null;
        prayerIcon = null;
        hintIcon = null;
        crosses = null;
        mapDotItem = null;
        mapDotNPC = null;
        mapDotPlayer = null;
        mapDotFriend = null;
        mapDotTeam = null;
        mapScenes = null;
        mapFunctions = null;
        anIntArrayArray929 = null;
        localPlayers = null;
        playerIndices = null;
        playerUpdateIndices = null;
        playerAppearanceBuffers = null;
        localPlayerIndices = null;
        localNpcs = null;
        localNpcIndices = null;
        groundItems = null;
        aClass19_1179 = null;
        projectileList = null;
        stillGraphicList = null;
        menuActionCmd2 = null;
        menuActionCmd3 = null;
        menuActionOpcode = null;
        menuActionCmd1 = null;
        menuActionName = null;
        configStates = null;
        anIntArray1072 = null;
        anIntArray1073 = null;
        aClass30_Sub2_Sub1_Sub1Array1140 = null;
        minimap = null;
        friendsNames = null;
        friendsNamesAsLongs = null;
        friendsWorlds = null;
        leftFlameCanvas = null;
        rightFlameCanvas = null;
        topLeftCanvas = null;
        bottomLeftCanvas = null;
        leftCanvas = null;
        titleBoxLeftCanvas = null;
        bottomRightCanvas = null;
        smallLeftCanvas = null;
        smallRightCanvas = null;
        dispose();
        ObjectDefinition.dispose();
        NpcDefinition.dispose();
        ItemDefinition.dispose();
        Floor.cachedFloors = null;
        IdentityKit.designCache = null;
        Interface.cachedInterfaces = null;
        Sequence.sequenceCache = null;
        SpotAnimation.spotAnimationCache = null;
        SpotAnimation.cache = null;
        Varp.cache = null;
        super.graphicsBuffer = null;
        Player.modelCache = null;
        Rasterizer.dispose();
        SceneGraph.dispose();
        Model.dispose();
        Animation.dispose();
        System.gc();
    }