also write profiler output when rakudo exit()s

timotimo++ for the proposed patch.