Implementation of a blocking close method that waits for all bulk requests to complete before returning.