commandline session reconnect
Merge pull request #1553 from dpoe/master

commandline session reconnect