Add error handling for remote block exec.