exit fix, needs socket error exception handling
Merge branch 'master' of github.com:pmitros/x2