Use custom deleters to handle libevent objects