Added a dispose flow so that close and dispose can use the same implementations as well as publishClose and publishDispose.

Also added another constant.
Revved the version.
New swc with changes.