for my $command (@commands) { $manager->start and next; ... exec( $command ); $manager->finish; }