There is a project that allows you to make a will and dispose of your crypto-currency assets. This is based on smart contracts. Smart contracts control the fulfillment of your will. So at the moment it's not a problem.
Yes you are right,if this kind of scenario happen your bitcoin is not steal by other and even your relative they cannot get it.