JAVA-6071ClosedFixed

Test failures due to connection leaks and unexpected exceptions in bulk write tests

During the execution of CrudProseTest.testBulkWriteHandlesWriteErrorsAcrossBatches, the test fails with an unexpected *IllegalStateException* (timeout during blocking read) instead of the expected {*}ClientBulkWriteException{*}. Additionally, an assertion error occurs because not all connections are closed after shutting down the client, and a *NullPointerException* is thrown in asynchronous channel handling.  *Evidence from logs: [Link|https://parsley.corp.mongodb.com/test/mongo_java_driver_

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
5.14.0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.