code: public void killAll() {
          for (int i = 0; i < size(); i++) {
              if (i == 0) {
                  players[i].bye();
                  players[i].stopRunning();
              } else if (i >= 1) {
                  try {
                      players[i].bye();
                      players[i].stopRunning();
                  } catch (Exception ex) {
                      players[i].handleError(ex.getMessage());
                  }
              }
              pause(500);
          }
          if (hasCoach) {
              try {
                  coach.bye();
                  coach.stopRunning();
              } catch (Exception ex) {
                  coach.handleError(ex.getMessage());
              }
              pause(500);
          }
      }
docs: Kill all players and the coach (if connected).