trap exception for xls