Why did Konan leave the akatsuki?

Konan joined the Akatsuki because she and Nagato/Pein had the same goal.After Nagato died,she decided to leave the group as she stated Yahiko and Nagato were everything to her.She decides it's useless to stay and left.Sorry if i spoiled anything :P