The sad fact is that it has the opposite effect, including sucide so it cannot be divinely inspired - as that law is based on what is the loving thing to do.
A brother in our area was driven to suicide because his family turned against him, and he wasn't even disfellowshipped. This guy had three brothers, and all of them told him that they wouldn't have anything more to do with him if he didn't start coming back to the KH. He was also losing his house, and he asked his parents if he could stay with them for awhile until he got back on his feet. They told him that his wife could come to stay with them, but he could not.