Properly exit from phantom when tests pass/fail