kitchenaid dishwashet wont run full cycle

Dishwasher starts and run for about 10-15 minutes then it will stop and drain. I am able to restart it right away. I cleaned out the filters and everything. It use to run without the top rack in in now it just shuts off. Any help would be appriciated. Thanks in advance