Simplify exception handling in repository listeners and message handlers