In one of my jobs I ended up in a position where at the end of it I hated going to work. So I stayed up late, so the dreaded work would still be a sleep away. So I was getting more and more upset about my position, fueled not just by being between a rock and a hard place, but also by this voluntary sleep deprivation. Human mind is weird, well, at least mine is.
The half-life of cortisol is very short (comparable to that of cocaine):
"The plasma clearance of cortisol is rapid, with a half-life of 66 min at normal hormone levels. With large steroid loads, however, the half-life increases to 120 min."
If you work out in the morning or afternoon, avoid working ~3-4 hours before bed, you should be able to sleep just fine.