You can use split screen on an iPad to view multiple apps at once and multitask with features like Split View and Slide Over.
You can automatically close tabs on your iPad through the Settings app, where you can configure Safari to automatically close ...
If your iPad is frozen to the point that you can't reboot it the normal way, perform a forced restart. Charge the battery.