need to check this error and avoid the .Close() on 88 if you had an error. Running through the wikipedia example is causing streamtools to panic here.