improvements in eventbufferevent cleanup