better handling of timeouts and network disconnects
Merge branch 'master' of https://github.com/hjespers/teslams