handle Exceptions in application init()