Fix CLI version to automatically exit when the server is shut down.