log the ex message to file when port 6002 disconnect