I have the following problem, since I have to program in nodejs when executing the nodejs application from the console (node app.js) there is a busy port (example port: 3000) .. when closing the app (< kbd> Ctrl + C ) ... the port is still busy and when I rerun the nodejs it throws me%% error% because it says that there is already an application that uses that port.
When closing does not close correctly and the port is open, what I do is find the app's id and kill the port with the Error: listen EADDRINUSE
command but that takes too many hours when deploying a deploy
Is there another way to close (safely) an app in nodejs?