Added a message box pop for socket close function
Added a message box pop for socket close function