Move sane_exit workaround to rawapi

Calling sane_exit is crashy - it often triggers segfaults on process
exit and prevents the rawapi tests from being run reliably.  This moves
the abstract workaround to the rawapi so we should never sane_exit.

Signed-off-by: Ross Vandegrift <ross@kallisti.us>