diff --git a/execution/executors/oci/io.go b/execution/executors/oci/io.go
index <HASH>..<HASH> 100644
--- a/execution/executors/oci/io.go
+++ b/execution/executors/oci/io.go
@@ -49,13 +49,5 @@ func (o OIO) cleanup() {
 	if o.master != nil {
 		o.master.Close()
 	}
-	if o.rio.Stdin != nil {
-		o.rio.Stdin.(*os.File).Close()
-	}
-	if o.rio.Stdout != nil {
-		o.rio.Stdout.(*os.File).Close()
-	}
-	if o.rio.Stderr != nil {
-		o.rio.Stderr.(*os.File).Close()
-	}
+	o.rio.Close()
 }
Fix logrus imports and runc.IO closer method