I wouldn't be surprised if it didn't count. Relic books did the same thing if you were doing your dungeon and were dead when the last boss died, you got no credit