arcmap takes forever to cancel script execution

Discussion created by crispincooper on Mar 4, 2011
I notice if I hit 'cancel' on the progress dialog for my script, arc takes a very long time to cancel it (last time I ended up killing the process altogether...)

Is this usually a problem, or is there some form of callback I can use to make sure arcmap gets the chance to cancel if the user so desires?

Thanks, C.