Your sentence is completely correct.
You use 'had stopped' because the tense says that some event happened in the past before or at the same time as some other event in the past. The second clause is independent, with the time being expressed by 'after that'. You could have made it a separate sentence (though it is better as a clause: I went home after that.
The tense is simple past in this case.