How do I catch cancel