Results 1 comments of Julien Desrochers

You are probably killing your process with CTRL-Z, try using CTRL-C. It will send a SIGINT that will end your program the right way, unbinding your process from any ports...