private synchronized void closePrintWriters(){
        for (Socket socket: getSockets()){
            try {
                socket.close();
            } catch (Exception e){
                e.printStackTrace();
            }
        }
    }