Adding some error handling

This is pretty dumb right now, but will handle the "no last-good-run" issue.