fix connection's errorhander
fix errorhandler