I allow myself 30m after normal losses to just absolutly explode and vent. The game did it to me, and I have a right. After that, I feel it's me choosing to continue to make myself miserable. I used to let it ruin my night, and even the next day. It wasn't worth it. It was a philosophical change that worked wonders.
This game took longer. I allowed myself to rampage last night, this morning, and even my drive into work. Once I punched in, I was done. Am I still occasionally getting melancholic? Yeah, but it's not tearing me apart.
Hope that helps, in some way.