Wait for the command to finish before completing processing.