Add segment.io analytics

Can this fail? If so, are there any bad implications of throwing an exception inside an error handler? I'm wondering whether a try-catch is warranted.