removed infinite retry loop and re-raised error