[core] Print exceptions in per-frame commands to console