enable close app listener