Andy Roddick's foray out of retirement ended in defeat after he was beaten by Spain's Nicolas Almagro in the Miami Tennis Cup exhibition final.