code: def kill_pane(self, pane):
          
          assert isinstance(pane, Pane)
  
          # Send kill signal.
          if not pane.process.is_terminated:
              pane.process.kill()
  
          # Remove from layout.
          self.arrangement.remove_pane(pane)
docs: Kill the given pane, and remove it from the arrangement.