* [ISSUE #7411] fix NPE when the RpcClient shutdown - add unit test for this issue * remove UnusedImports