Update clicommand.py

Added onStart, onExit functions.