Fix problem with smtp_max_per_host; test for completed processes before