Crash due to socket hangup

I am facing an issue where erizo keeps on crashing due to socket hangup
error. I can catch the exception and prevent the crash but while reading
about nodejs I found that people prefer to restart rather than keep the
server in a bad state. So any ideas/fixes for this that anyone else is