Sleeps to ensure processes complete