Add timeout to init