master process to handle force exit, working polling, nearly detecting of file change