write characteristic control error hanler added