fix subscription on closed connection issue