Modified stream forwarder so that failed Writes are retried on the next loop.