Make sure that if our token is canceled, the window immediately closes