Revert "File based alarm watchdog removed."
Bugs in the last commit.

This reverts commit 14554986b71b1026a9468e9cb5be0687c0125ec0.