public void stop() throws OfficeException { taskExecutor.setAvailable(false); stopping = true; taskExecutor.shutdownNow(); managedOfficeProcess.stopAndWait(); }