This is usually when I say Fuck it and go do something else. Once you've had a chance to absorb what's happened, and let it sit in your mind, a time will come when you're ready to jump back in and begin rebuilding. Put it aside for a while and give yourself a chance to cope.