Moved try to catch initialization errors.