'Closes the current session'

def end(self):

    dump_follow_restriction(self.follow_restrict)
    self.browser.delete_all_cookies()
    self.browser.close()
    if self.nogui:
        self.display.stop()
    print ''
    print 'Session    ended'
    print '-------------'
    self.logFile.write('\nSession    ended    -    {}\n'.format(datetime.now().strftime('%Y-%m-%d    %H:%M:%S')))
    self.logFile.write((('-' * 20) + '\n\n'))
    self.logFile.close()
    with open('./logs/followed.txt', 'w') as followFile:
        followFile.write(str(self.followed))
