Always close Scanner in JsonRpcServiceBase::convertStreamToString.

Java sucks at RAII.