Added remote response error checking.