Replying to
@dramforever @krans @whitequark if the process dies, the process needs not concern itself with cleaning up system resources.
I tbecomes the problem of the system to clean up after the dead process. Of course the process will gain no benefit from this for it is dead.