public void stop(){
  setLedOn(false);
  if (null != blinkFuture) {
    blinkFuture.cancel(true);
  }
  if (null != blinkService) {
    blinkService.shutdownNow();
  }
}

public void stop ( ) { setLedOn ( false ) ; if ( null != blinkFuture ) { blinkFuture . cancel ( true ) ; } if ( null != blinkService ) { blinkService . shutdownNow ( ) ; } }
calling this method will stop all threads . this is needed when using javafx on mobile devices when the device goes to sleep mode .
