Added closed flag.
Added Cython module.
Added Cython exception.