He was held in Scottish prisons until he was released on compassionate grounds on 20 August 2009 because he had terminal prostate cancer. He returned to Tripoli that day and died of the disease there.