public void closeStream(){
  CarbonUtil.closeStreams(stream);
  executorService.shutdown();
}

public void closeStream ( ) { CarbonUtil . closeStreams ( stream ) ; executorService . shutdown ( ) ; }
below method will be used to close streams
