Ensures SG is stopped/started each build. Cleanups.