Handle disconnect socket