Since I started making externals for PD, here is a new one:
[closemsg X]

It sends a bang to X when it is destroyed. It therefore acts as a closebang.
See attached source and i386 linux binary.

Tom