destroy event and free event socket fd