Discconect while trading without logg off cooldown

I saw some guys using phbot to trade 24/7 so I got phbot alrdy but the thing I cant find yet , that they have a trick they instant dc when theif atk their trade pet although the server has 60 sec log off delay , can I know how to do it like them ??