Added logic to handle possession that could be orphaned at the end of a period