allow reseting the PromiseFactory to null