It's an ambiguos ending it's how you interpret it, one of the ending is what you said and the other is, the robot shuts down since he got closure and has no purpose anymore!