code: public void close(Context context) {
          client.clean(context.getApplicationContext());
          if (db != null) {
              db.closeDatabase();
          }
      }
docs: Method to close the client state, won't be usable anymore. Useful e.g. for unit testing.
  
  @param context Context.