solved reconnection issue & sending error command