Catch errors thrown by component instantiation and initialisation