Added processing random disconnect with socket lib and inform delegate