'Destructor for JIRA instance.'

def __del__(self):

    session = getattr(self, u'_session', None)
    if (session is not None):
        if (self.sys_version_info < (3, 4, 0)):
            try:
                session.close()
            except TypeError:
                pass
