exception handling for parsing csv