Adding error handling to hello world