Handle exit messages from tests in ex_unit

Fixes #982