Kenmore 30" electric self-cleaning slide in range

The door goes into lock mode and the oven turns itself off. This does not happen immediately, but after it has been cooking for a while (15, 30, 45, etc. minutes)