'index' is not used.
duplicated code: contents.indexOf(mSocketName + "_devtools_remote")