Improve test logging while closing Thrift server

Change-Id: I49175f8610614b3dd85c26775e79141c8c561997