Simplifying some code

Patch by Paul Crawford <psc@sat.dundee.ac.uk>
User now can configure shutdown behaviour for the overheating case.

Patch by Paul Crawford <psc@sat.dundee.ac.uk>