Fixed bug with copying of promises.

Shared state must be closed/satisfied when all related promises are dead.