Catching any exception during component initialization.