protected void doQuit() {
        this.state = WAIT_HSOVERALL;
        int goldAmount;
        if (ship.gold > 0) {
            if (ship.gold <= 1000) {
                goldAmount = ship.gold;
            } else {
                goldAmount = new Double(((ship.gold - 1000) * .1) + 1000).intValue();
            }
            ship.currentQuadrant.addObject(new TrekGold(goldAmount, ship));
        }
        ship.currentQuadrant.removeShipByScanLetter(ship.scanLetter);
        if (!(this instanceof TrekBot)) {
            dbInt.updateShipRecord(ship);
            dbInt.setShipDestroyed(ship.dbShipID);
        }
    }