Added small wait to allow buffers to set outputs to zero before stopping tasks.