use context manager when recovering partial registration

DE106