-Dorg.apache.catalina.startup.EXIT_ON_INIT_FAILURE=true
System.exit(1)
<Server port="8005" shutdown="someLongAndSecretString">
Socket socket = new Socket("localhost", 8005);
if (socket.isConnected()) {
PrintWriter pw = new PrintWriter(socket.getOutputStream(), true);
pw.println("someLongAndSecretString");
pw.close();
socket.close();
}