<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def close_session(self):
 """Close current session."""

        if not self._session.closed:
            if self._session._connector_owner:
                self._session._connector.close()
            self._session._connector = None