NuCivic/nucivic-internal#43 Adding error handling