fix GH-207

Do not block emitting `close` event prior to `open`.