add onCannotClose method to AbleToCloseDelegate