catch IOException in Node.loop()
Merge pull request #9 from ErikFang/master

catch IOException in Node.loop()