Unbreak Exception rescue clause in heartbeat run loop.

* Use correct exception variable.
* Adjust error message to be generic.
Merge pull request #126 from bernd/fix-heartbeat-exception-handler

Unbreak Exception rescue clause in heartbeat run loop.