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

Hi,

When local client close socks5 connection the local.py will receive zero length `data` 

This is the error:

    File "local.py", line 107, in handle
        mode = ord(data[1])
    IndexError: string index out of range


This small patch fix this problem :D