Unwanted nodered restart

I have fixed the formatting of your log so that it is easier to read. For the future, if posting flows, code or logs it is best to use the technique described in this post: How to share code or flow json

Yes, that is why it has crashed. I would first check that you are using the latest version of the node (0.0.17) and also, if possible, upgrade node-red to the latest, though it is less likely to be that.

If you still get the problem then you should submit an issue on the node's github page as it should be fixed.

As to why it is doing it, it is probably something you are sending to the node, so add a debug showing what is going into that node and check it looks ok. A check after the node will not help as it has already crashed by the time the message would get to there.