Wait for kernel to finish before returning