feature #1797: change shutdown and cancel in CLI and ruby OCA