Allow aborting deletion in onDelete event.

See issue #151 and #224.
Merge pull request #228 from plomino/jean-151-onDelete-abort

Allow aborting deletion in onDelete event.