def kill_pane(self, pane):
assert isinstance(pane, Pane)<EOL>if not pane.process.is_terminated:<EOL><INDENT>pane.process.kill()<EOL><DEDENT>self.arrangement.remove_pane(pane)<EOL>
Kill the given pane, and remove it from the arrangement.