tests: close test servers
client: improve error message for connection failures

Related to globocom/tsuru#296.
tests: added another assertion to connection failure
tests: added test for connection failure during POST
tests: added test for failures in marshaling of body
tests: added test for marshaling failure in POST requests
tests: added test for marshaling failure in DELETE requests
client: improve error message for failures in request creation