closing streams for ProcessBasedExecution, added toString for CommandTool