catch SIGTERM and SIGKILL in profiler