call window.close() for jsdom to stop leaking