def METHOD_NAME(context):
    if context:
        if context[CXT_RESP_BODYFD]:
            context[CXT_RESP_BODYFD].close()
        if context[CXT_CONNECTION]:
            context[CXT_CONNECTION].close()