Fixed exception catch ordering to catch remote exception before more general IO exception