The pirate ship finally stopped after the destroyer fired warning shots , and the crew effectively surrendered .