code: @Override
    public void close() throws IOException {
      if (!closed) {
        objectOutputStream.close();
        fileOutputStream.close();
        closed = true;
      }
    }
docs: /*
  (non-Javadoc)
  
  @see java.io.Closeable#close()