PCT-764: Bad data file causes agent to stop sending but keep spooling data

* Test sender error handling with connect, recv, 500, and bad files
* Remove file on 400 response
* Stop sending on 500 response
* Limit number of errors
* Simpler status on success