Perhaps `INITIALIZED` should be set to `True` *after* all the logic is done? That way, if something screws up somehow, it will be retried.