Fixed an bug that made the application crash if an exception appered at bootstrap