code: def close_application(self):
          
          self._debug('Closing application with session id %s' % self._current_application().session_id)
          self._cache.close()
docs: Closes the current application and also close webdriver session.