Add an event handler for eviction