[java] SSL peer shut down incorrectly in Java