Turn resolutely to work, to recreation, or in any case to physical exercise till you are so tired you can't help going to sleep, and when you wake up you won't want to worry.
But if somebody dies, if something happens to you, there is a normal process of depression, it is part of being human, and some people view it as a learning experience etc.