Stop the profiler when doing a shutdown profile