runapps script kill fix