Threads are automatically terminated when daemonized.
Fixed dummy imports.