fixed some more debug messages
debug message + ensure destroying the per-worker mutex and cond variable