I have had many trials, when they hit I would pray... and stick close to God, still try to praise and thank him for all the good, to get my mind off the suffering. Because of this I have come more close to God in my spiritual walk with him. When I have used this technique, I have found thing actually end up better than before the trial began.