How to know client (user) request cancel