How to handle cancelations?

Once a deployment is canceled in circleci, it stops at that point, killing on instances etc. is there a way to have a fallback for the cancelation event so i could for instance clean up the deployment process?

anyone? :frowning: