Stop riemann-core properly