Somali pirates seized more than 40 ships during 2008 and received millions of dollars in ransom payments in a hijacking spree .