can this be moved to an `always()` handler so it is done for both success and failure branches of the promise's resolution and you don't need it twice here or is that executed too late?

Also, done should be on it's own line (see line 622)