I broke the server code by trying to allow it to close gracefully,
Xavier was right, we just need to kill the server to release the socket.