subprocess: undo channel transforms on invocation error