Added failing test for timing issues that keep a non-daemon thread open on shutdown