Don't call exit() with threads running

Otherwise running threads race with destructors.

Bug: 150176543
Test: Build and boot AOSP
Change-Id: I159164a36d9808ae86c2928271b14736178e127b
(cherry picked from commit 0fcf4a605daa4f7cd43eddbf25cfe22d4e2bc391)
1 file changed