remove `error` event listener