CSV File generaion exception handling