Remove code redundancy
Use `Exception` suffix
CLI: do not use `sys.stderr.write()`