}
DatabaseUtils.closeDatabaseSR(statement, rset);
L2Summon summon = owner.getPet();
if(summon != null && summon.getObjectId() == petObjectId)
{
summon.unSummon();
}
L2Player player = owner.getPlayer();
if(player != null && player.isMounted() && player.getMountObjId() == petObjectId)
{
player.setMount(0, 0, 0);