code: public void shutdown() {
          try {
              if (reader != null) {
                  reader.close();
                  reader = null;
              }
          } catch (IOException ioe) {
              ioe.printStackTrace();
          }
      }
docs: Close the receiver, release any resources that are accessing the file.