waiting for child process to finish Process has ended