Fixes to way temporary file is handles so it works.
Fixes to way temporary file is handles so it works.

solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn,solgenomics/sgn