Expose the query on the options for a `destroying` event (fixes #231)