added handler for cmd/cancel messages