Fixes issue #31: cancelling does no longer produce errors.