def shutdown(self, targets=None, restart=False, hub=False, block=None):
block = self.block if block is None else block<EOL>if targets is None or targets == '<STR_LIT:all>':<EOL><INDENT>targets = self.targets<EOL><DEDENT>return self.client.shutdown(targets=targets, restart=restart, hub=hub, block=block)<EOL>
Terminates one or more engine processes, optionally including the hub.