When using `⌃C` to terminate the server, it prints "Shutting down", but it does not complete it and stays forever in that state