Added autoshutdown with file/script monitoring