I have an Addon in Java and using the ProtocolHandler scheme I start a Socket Server. Once the protocol handler is executed the server is created inside a Thread and left on the jvm to be executed but I think I lose a reference to this server as the ProtocolHandler will just execute a function and return.
Is this behaviour ok or is the server a zombie process now which can exit anytime the garbage collector comes and picks up the server object.
