added exception handling to the csv uploads

Change-Id: I1b5d7d76d9df58520b51c03184bd7a37159946a6