Fix crash on startUp exception.

Change-Id: Ibcde984e488fc85be3207376788decd3348c88cd