Add some error checks for swap relfile of shared catalogs