actions: Catch and log exceptions when running handlers.