This rotting is completely natural. If you prune a branch, everything above the furthest out node (the bit where new leaves will come from) will slowly die - this excess plant tissue is useless to the plant, because this tissue has nothing to carry nutrients to or from. However, everything below the furthest out node will remain alive and healthy, because it is required to carry nutrients to and from the leaves/branches growing at that node. Does this make sense?