The moment life blows up in your face presents a whirlwind of options. How do you react? Where is the next step? What keeps you from quitting altogether? I don't exactly know. But Mahatma Ghandi had something helpful to say:
"My imperfections and failures are as much a blessing from God as my successes and my talents and I lay them both at his feet."
Whatever the hurt, whatever the consequence, if it results in seeking God in more humility and more sincerity then it can all be called a blessing.