Closes #71 - error handler function in place, ready to be extended for logging, extra handling, etc.