added callback to .setupFile for when the previous stream closes