Close pipe after using pipe Upstream-commit: 90be7a591de1f30332827a003edc39065fb8e4a7 Component: engine