Add preparation for provider (bug 942361)

can you even reject a promise in its own ``done()`` handler?