close the sequence reader when checking input files