Add optional errback for writing to a collection