close is deprecated, cancel is preferred