code: private void destroy(Process p, BufferedReader reader){
  		p.destroy();
  		try {
  			reader.close();
  		} catch (IOException e) {
  			e.printStackTrace();
  		}
  	}
docs: Destroys the process and closes the BufferedReader.
  
  @param p the process to destroy
  @param reader the BufferedReader to close