Please review: Ticket #387 - managed entry sometimes doesn't delete the managed entry