Extracted close_session task and updated exception type
Extracted close_session task and updated exception type

dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq,dimagi/commcare-hq