terminate profiler when exiting ruby process