The integration tests were failing as long as the file descriptors were closed.
Closing them after the logger has been initialized fixed this issue.