This is technically race-y because the send may not have completed by the time you call process.exit(). But we do something similar in other tests (including ones written by yours truly) so I guess it's okay. :-/