display error on socket crash