Correctly remove subscribers when the code branch is destroyed.