The lone survivor of a mining accident in the U.S. state of West Virginia has been released from a hospital, nearly three months after the accident that killed 12 of his co-workers.

Randal McCloy spoke briefly to reporters Thursday, offering thanks for people's thoughts and prayers during his recovery. His wife Anna thanked McCloy's rescuers and doctors and said her thoughts are still with the families who lost loved ones in the accident.

McCloy and his co-workers were trapped underground more than 40 hours after an explosion in the Sago coal mine in the West Virginia mountains. The others died of carbon monoxide poisoning. Doctors say they can not explain why McCloy survived while the others perished.

Some information for this report was provided by AP .