Process exit fixes.