Added some shutdown code

And tried to figure out why the FacereaderAPI dll appears to work on
some machines but not others