fn stop( world: &mut World, directory: &str, file_name: Option<&str>, ) -> Result<Value, ToolError>
Stop the recording, write its samples and report the file.