fixed jsonrpc can't exit