EUCA-8580: after exception's thrown, should reset outputstream before reuse