Fixed issue causing infinite recursion if CancelEventArgs was used (#249)