Add option to delete the emulator after build only if the build did not succeed