in reply to How can I kill subprocesses when the main script dies?
The briefest way to do that is something like:
$SIG{INT} = sub { die }; [download]