I've gotten a lot of comfort from the philosophy of the Roman Stoics. For me, one of the most powerful ideas of Stoicism is that you can't pick or choose in the world what you want to happen and what you don't want to happen, and that actually if you did get to choose, the version you would come up with would be unsociable, lame, and basically less beautiful than the truth.