Fix remote error checking and reporting.