On the ptr (5.2 patch), the pet will instantly respawn if you forfeit. Same battle, same quality, same everything. It will not respawn if you accidently kill the 1st pet though.
This works great if you join a battle and realize you're low on health or have the wrong pets. No more need to alt+f4