Getting too hot

I replaced the drum bearing today because it was squelling and the slides were wore out.Put it back together and it will run for about 5 minutes then shut off. The cabinet gets hot on top what controls the heat? The exhaust is blowing fine

What does shut off - the whole dryer or just the heat?

If the whole dryer shuts off - would you be able to restart it or it has to cool down?

Gene.