...
The port will be automatically closed if the last acceptor with this port is unregistered. It needs to note that this rule is true only for ports which were opened automatically by registering an acceptor or via theĀ openPort() call with parameterĀ autoclose = true:
...