Add a bad_alloc info.
When the action of newing cookies fails, it will return.