fn wait(self: *ChildProcess) !Term
Blocks until child process terminates and then cleans up all resources.
self: *ChildProcess,