Make initialization more robust instead of silently catching errors