free the closure with the event