Added test for rethrowing of error after chunks cleanup.
Rethrow error upon chunks cleanup in GridFS.put.