Auto shutdown exactly 30 minutes

Solution
Go into settings or control panel and check the power settings, it maybe that it is set on auto shut down, or sleep after 30 mins of inactivity. Are you using the PC when this happens, or is it at idle?