add close connection
token's getStopIndex() in inclusive.
use getStartPos() + getLength() to avoid confusion