This is the premise of the short story 'The lifecycle of software objects' by Ted Chiang. In that story the employees of the company take it upon themselves to maintain their human-like pets. If the concept of future AI/robot friends like this 'dying' is of interest to you give this story a read: https://www.goodreads.com/book/show/7886338-the-lifecycle-of...
I came to comment this. It was a weird story, to be honest. Like I didn't know where it was going, but at the same time I couldn't stop reading it. Highly recommended it.