Replaced exit(1) with GenerateTimesheetError