export delay is now actually after restoring the window, not before (#428)