namely `'close'` and `'error'`