<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def main(bot):
 """ Entry point for the command line launcher. :param bot: the IRC bot to run :type bot: :class:`fatbotslim.irc.bot.IRC` """

    greenlet = spawn(bot.run)
    try:
        greenlet.join()
    except KeyboardInterrupt:
        print ''  # cosmetics matters
        log.info("Killed by user, disconnecting...")
        bot.disconnect()
    finally:
        greenlet.kill()