Clearing commands list when commands have been executed