Proposed fixes for RESTEASY-963 and RESTEASY-973

The following code changes address RESTEASY-963 and RESTEASY-973.

When using the Client Framework, we do not have direct access to the underlying connection.  When an error is received (i.e. the server throws an exception), the client's connection was previously not released and then all subsequent requests will not work.  The fix simply ensures that the connection is closed when receiving an error.  The test program, attached to the JIRA issue, will now function as expected with the proposed changes.

This is related to discussions found here:
  http://sourceforge.net/mailarchive/forum.php?thread_name=52605235.2040401%40redhat.com&forum_name=resteasy-users
and possibly here:
  http://sourceforge.net/mailarchive/forum.php?thread_name=525E82C0.5000304%40redhat.com&forum_name=resteasy-users