Add try trap for failed serial write.