If you become ill or disabled unexpectedly, or when you die, the important details of your online (internet) life can be made available to those who really need it. It is important to consider having a safe, secure repository for your vital digital property that lets you grant access to online assets for friends and loved ones. It is important to have the ability to update your information in a timely manner rather than keeping everything in a safe deposit box or hidden away in a desk drawer. Keep your usernames, passwords, final messages and so on in a virtual safe-deposit box.
After you’re gone, there are companies that carry out last wishes, alert friends, give account access to various designated beneficiaries, and generally parse out and pass on your online assets. Digital remains should be properly bequeathed to an inheritor.
I do not endorse any one of these companies and I provide links to them as examples of what is available to you. There are other such services available elsewhere too.