It would be nice to have a generic event handler for error events on any step, so the script can gracefully logout from an application. Currently event handlers seem to focus on objects, but not on error events like a timeout. I would use this feature for all steps after a login.