server: show error message instead of exception when socket.io lib is not defined