Add support for cancellable commands (fixes #10)
Add example for cancel feature.