Moved Socket Security Error

Moved Socket Security Error to closure.