begin cleanup of subprocess control