closing a subprocess has only been added since python3.7 This leads to error messages being written on stdout while running with a version inferior to that.