Prevent 'close' event from propagating.