Fix a bug in AbstractEmbeddedChannel where flush failure is not recorded