Handle exceptions in various components.