Moved stability changes from master into 1.9 for SubProcess.

 NOTE: If you are forward-merging this change into 2.0, you can throw
       away all the changes in this commit, they are already present
       in the master branch.
Merge pull request #1850 from jakewins/subprocess-stability

Moved stability changes from master into 1.9 for SubProcess.