tap: invoke downscript when we exit abnormally