<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_application(self):

 """Closes the current application and also close webdriver session."""

        self._debug('Closing application with session id %s' % self._current_application().session_id)
        self._cache.close()