Will trigger the `close` event twice.