removed bug in adapter stop script