Wait for the subprocess to end on send