Sleep until emails are sent