Properly clean up after logging wrappers
Use cross platform null device