fixed exit and clear working when commands are disabled.