Use a SIGPIPE to kill the process, instead of depending upon the astcanary process...