This might lead to the callback being called twice, since we'll handle the `close` event below. Again, not sure that's a big deal--we should check on whether that will cause any issues.