fix conn termination null data
Merge pull request #24 from est/master

fix string index out of range in local.py line 107