emit closed when the rpc has successfully closed.
3.1.0