Making changes in Java to match those in made in .Net in commit 94e58df5520abc219e2f1aa4bed104068cbed13d.  Essentially checking to see if connections and channels are still open before trying to close them.  Avoids some needless entries in the error logs.
Removed port as a constructor argument from SslHttpClientProvider.
Removed port as a constructor argument from BasicAuthHttpClientProvider.
Merge branch 'feature/amp-101' into develop