Or alternately you can recall home and back to the ship using a ship rune and your pet will recall with you and back... no logging in and out...Since this is becoming a general info thread.
For tamers:
Many of us use a built AI/AP giant beetle since it can hold stuff. They can kill the Dread pirate but take a while alone.
Any AI/Chiv pet will kill it faster.
Those two together kill it before you can loot the ship so be careful if you are catching the pirate.
A magery mastery pet can jump to the pirate ship and kill the crew. They can also jump to beacons but not as often. They will not jump back to you. So you have to log off and on to retrieve them from a beacon.
A current spawning 2 slot nightmare makes a good AI/magery mastery pet. Please do not use a prepatch nightmare for that build
As I use Magery Mastery Unicorns all the time to do the Pirates and beacons.