short-circuiting from an event listener within an event listener