<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def _recv_close(self, method_frame):
        '''
        Receive a close command from the broker.
        '''
        self.channel._close_info = {
            'reply_code': method_frame.args.read_short(),
            'reply_text': method_frame.args.read_shortstr(),
            'class_id': method_frame.args.read_short(),
            'method_id': method_frame.args.read_short()
        }

        self.channel._closed = True
        self.channel._closed_cb(
            final_frame=MethodFrame(self.channel_id, 20, 41))