Unbreak Exception rescue clause in heartbeat run loop.

* Use correct exception variable.
* Adjust error message to be generic.