GCP-8050 - fix for the possible problem of process.waitFor()