AGI Agent Safety by Iteratively Improving the Utility Function