Save message body and close connection

def save_work_request_and_close(self, ch, method, properties, body):
        """
        Save message body and close connection
        """
        self.work_request = pickle.loads(body)
        ch.basic_ack(delivery_tag=method.delivery_tag)
        ch.stop_consuming()
        self.connection.close()