maybe:

```js
if (reason.code !== reason.CLOSE_NORMAL) {
```