Closes sequence at end of conversion to Scala.