in reply to die function and notifications
eval { ... }; if ($@ ne "") { my $error = $@; cleanup(); die "error was: $error\n"; } [download]