[Updated] Implementation of blocking close method #4180

Blocks until all bulk requests have completed.  

Updated based on feedback
Updated formatting

Closes #4158 
Closes #6314