Make dex2oat fail early if it can't write oat file
Make dex2oat fail early if it can't write oat file

Change-Id: I4097110a76b5b5b3729c236d6cc6e47e2519ebe0

treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst,treadstoneproject/artinst