make sure that the process exits.

... especially in the face of all the other threads that get created that might keep the JVM going.
added logging
make the thread a daemon thread