add exit event