Pirates usually release the hijacked ships and their crews unharmed after receiving a ransom , sometimes worth millions of dollars .