more error checking in case import_xchan fails