Are you calling os.exit() or otherwise terminating the process before it manages to terminate?
(How about if you use -t before test.vpws-perf? the profiler stuff is in main.lua and related to the command line.)