If a resource migration task fails, it can throw an exception. There may not be a handler for this exception, if this is happening from the task thread, which results in an abort. There's 2 things we should fix here:
Ensure there's a handler so this doesn't tear down the entire app.
Ensure future accesses to that resource can deal with having a null active resource from allocation failure, to avoid nullptr accesses from just crashing the app later on.
If a resource migration task fails, it can throw an exception. There may not be a handler for this exception, if this is happening from the task thread, which results in an abort. There's 2 things we should fix here: