Added kill app functionality