The provided text does not contain any reference to a character named Peter or a scene where a friend comforts him at the end. Without the source article, story, or chapter, this question cannot be answered.
Please provide the title, author, or excerpt of the work in question.