.open() and .close() can be cancelled

Both open and close operations can be cancelled if .preventDefault() was
called on `akno-before-XXX` event.