Mac turns self off - keeps prompting to turn off then does
Specifications ? Operating System ? What where prompt ??
What where prompt ??
First place to look would be the Energy Saving options in Settings.