Add exit app logic