Downing Street disclosed that the Prime Minister had personally appealed to Col Gaddafi , in a letter the day before Megrahi 's release from Greenock prison , for the terminally ill former intelligence officer to be given a low-key return rather than a hero 's welcome .