Make IDE Handle Disconnect/Connect Gracefully

* Fix issue #10