eval { success() or die(); }; if ($@) { complain() and cleanUp(); }