Log the stoppage and exit code in the client