handle errors writing to command input
just record first encountered error