Dying sometimes

I have a 1989 Fourtrax that I bought from my wifes’ grandfather. It has been a great machine except one thing. Sometimes when I put it in gear it automatically dies, not just sputters and dies but acts like something is shutting the key offf. I rebuilt the carberaetor, put a new fuel pump in it all to no avail. It does it when it is cold, hot, whenever really. Sometimes it goes for weeks without doing it and then other days I will not be able to ride it for several days. I have taken it to several different shops and of course they can never get the machine to do the problem, but they have no problem sending me a bill. After doing some research I have been playing with the clutch adjustment and think it somehow might be connected. It seems like their is a lot of knowledge floating around in here and if someone could throw some my way I would be much appreciated.