event handlers short circuit if client closes

[#82261444]