in reply to END block not excuting when thread interrupted
use File::Temp qw/ tempfile tempdir /; $dir = tempdir( CLEANUP => 1 ); [download]