Wait for process to exit before exiting build script.