Donald Kergan, 46, was caught after he was seen climbing out of the halls of residence in Glasgow city centre last May.