def detach_client(self, app):
connection = self.get_connection()<EOL>if connection:<EOL><INDENT>connection.detach_and_close()<EOL><DEDENT>self.invalidate()<EOL>
Detach the client that belongs to this CLI.