Closes this Cubit, cancels the coroutine scope, and marks it as closed. After calling close, emit and addError become no-ops.