Fix exception handling in AbstractComponentFunction