Updates for new send_command interface with improved error handling