Changed maia thread to daemon, so it will die properly