Cancel event handler