Clean up robot command handling