Added command name to panic handling to help debugging.