Handle errors (by logging them) when getting measurements in the example app.