Changed static logger to be initalized and closed explicitly, destructor did not quite do the trick