Function Close-Sam

Part of:

package elprep
( close-sam < file > < program > &key (wait t) )
Close the stream for a SAM/BAM/CRAM file, and the optional process representation for samtools.
Wait for the process to finish by default.