The bone dart (at least) pet will not reset to "defensive" or "follow" after mob has died. It will eventually search out another mob in range and attack. The only way to stop this behavior is to manually set the pet to passive and then back to defensive.