Fixed reconnection problems.
If you still have issues with frequent disconnections or the system not responding:
Please disable all Plugins in your SHC (such as Philips Hue) - I suspect they never have been properly tested with local SHCs and may cause all kinds of issues (a memory leak I guess) unrelated to this extension (but maybe related to the websocket connection that this extension uses so the problem is triggered by it).