sendData() log improvement
Some error handling added to sendData()