add socket exit with comment