tn90f quitting all of a sudden

Hi I have a TN90F that is quitting all of a sudden, all lights go out? After letting it sit for a while it will start back up and lights work again. Thanks for your help with this! It is a great tractor, I use it for loader work, bailing,plowing,planting.