private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        if (serverListenerTCP != null && !serverListenerTCP.isIsClossed()) {
            try {
                serverListenerTCP.fecharConexao();
            } catch (Throwable ex) {
                Logger.getLogger(ServerManager.class.getName()).log(Level.SEVERE, null, ex);
            }

            serverListenerTCP.interrupt();
        }

        if (serverListenerUDP != null && !serverListenerUDP.isIsClossed()) {
            try {
                serverListenerUDP.fecharConexao();
            } catch (Throwable ex) {
                Logger.getLogger(ServerManager.class.getName()).log(Level.SEVERE, null, ex);
            }

            serverListenerUDP.interrupt();
        }
    }//GEN-LAST:event_jButton1ActionPerformed