docs: async def end(self):
          """End process execution."""
          try:
              await self.proc.wait()
          finally:
              # Cleanup temporary files.
              for temporary_file in self.temporary_files:
                  temporary_file.close()
              self.temporary_files = []
  
          return self.proc.returncode