Add documentation for afterDestroy and beforeDestroy events.