close the span