Use Connect method instead of EVENT_TABLE to hook WebFrame::OnClose event.