control: Dump flight recorder on abnormal exit

Fan control throws exceptions when something goes wrong in order to
crash and possibly kill the watchdog.  In this case, dump the flight
recorder.  There are two paths because some exceptions just exit the app
so that a core dump isn't taken, since these are due to D-Bus problems
where core dumps aren't necessary.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I118517e186f8af434f95a528c2c7f1ecdbe7d337
1 file changed