I'm currently developing a nodejs with express web application which is able to start other webservers, also with express.
The problem is: If the main express webserver goes down (which happens during development) all the references to the started webservers get lost but they're still listening on the ports they've been bound to.
So the question is: is there a way to clean all those things up from nodejs?