catch IOException in Node.loop()