Wrap kpack lines in try...except and add fall back