Added an abstraction for launching operations in a subprocess.

Review: https://reviews.apache.org/r/22224