unlinkToDeathSafe

fun IBinder.unlinkToDeathSafe(recipient: IBinder.DeathRecipient, flags: Int)

Calls IBinder.unlinkToDeath and catches NoSuchElementException.

NoSuchElementException can be thrown by IBinder.unlinkToDeath if the binder connection already died.