code: public static void dispose() {
          synchronized (Command.class) {
              if (IS_BIND) {
                  Context context = Cmd.getContext();
                  if (context != null) {
                      try {
                          context.unbindService(I_CONN);
                      } catch (Exception e) {
                          e.printStackTrace();
                      }
                  }
                  I_COMMAND = null;
                  IS_BIND = false;
              }
          }
      }
docs: Dispose unbindService stopService