publish: move canceling to Overlay

generated from commit 98863a589f26464940ea5d00c50d32a4d2e4b0d6