necrosis added code to start/close rtm session (not tested)
Latest commit 456cba2 Dec 15, 2016