Throwing proper exception in case if listener has been stopped

in the middle of the GetContext call.

@amoiseev-softheme, this is proper fix of the D-24329, with our crutch of deadlocks.