In goes a first pass at some error handling