Must exit with proper exit status in tests.