added startup callback for cli to trace startup state changes in cli