I find that to keep yourself occupied and busy puts a block up against the bad thoughts.
I have started to do Zumba on Monday evenings and its great. I will be feeling miserable at home all day even feeling as though I can't be bothered to go. As soon as I walk in and have people around me! Even though I do not know their name nor do I know them, I feel instantly socialised. Once the music starts and I follow the leader with the steps I feel the darkness escaping me.
I would recommend that people start up a hobby enough that will blind their mind and hurt from the pain.