Modified so that it won't kill all apps

Please Review