Made reloading a thrift file more robust