Modify cancel method.
Review the close action.