If you destroy their drone control/hacking room or cloak the drone will freeze in the air and wait until the room is fixed or you un-cloak. Then it will resume coming at you. But if you destroy the ship before that it will just stay there.
Here is a shot of it:
