trigger the done callback after the response has ended.

The notification happens only by accident unless we wait for the response object to trigger its 'end' event.