[JENKINS-49196] java.io.IOException: Premature EOF when shutdown CLI command is used (cherry picked from commit 6baaf7d9)