@Override protected void stopService(){
  Thread t=keepAliveThread;
  keepAliveThread=null;
  if (t != null) {
    t.interrupt();
  }
}

@ Override protected void stopService ( ) { Thread t = keepAliveThread ; keepAliveThread = null ; if ( t != null ) { t . interrupt ( ) ; } }
stops the engine monitor .
