add autoshutdown script to plugin