Stop services when compiling js.  Fix compile flow