title: System.exit(0) does not work for closing application
body: <p>Because my application is fully dependent to SD memory, I want to close my application when SD card removed. I can find out when SD card removed but when I want to close my application using </p>
  
  <pre><code>System.exit(0)
  </code></pre>
  
  <p>application doesn't close and this error shown in my activity</p>
  
  <pre><code>appname isn't responding. Do you want to close it?
  </code></pre>
  
  <p>I guess its waiting for some processes to close.
  how can I fully close my application like in Task Manager.
  This is my code:</p>
  
  <pre><code>ActivityManager am = (ActivityManager) getSystemService(ACTIVITY_SERVICE);
  am.killBackgroundProcesses("packegename");
  
  System.runFinalizersOnExit(true);
  System.exit(0);
  </code></pre>
  
  <p>Can anybody help me</p>
  
  <p>UPDATE : 
  I should say that I have two services running in background</p>