Manage error when node.js tern server throw error.