Some boiler plate error handling for go