Added explicit closing of temporary fasta file