These are all good questions; the last question is by far the easiest to answer.
The last paragraph in Chapter 19 creates a mood of melancholy reflection. It uses words to signal such a mood explicitly, like "fateful" (to realize something is fateful, you have to step back and think about it) and "melancholy." It also uses words that carry connotations of melancholy, like "whisper" or "dark."
As far as what Hawthorne felt about the story, that is a far more complex question. He worked on the novel for some time; one can assume he went through many emotions about it. We can't assume that these passages like the one in Chapter 19 are him thinking or feeling; those are his narrative voice (part of the fictional creation). To really understand what he felt, you'd have to step outside the novel and look into his journals, letters, and notes.