I updated this to be `close(window).then(done).catch(assert.fail);` now