bug fix in event profiler
program to not quit shell in windows