base: add quick_exit emulation. am: 0c44256ae4
am: 63b499d93d

Change-Id: I2cffecc3d53e1877aa04d197c9f4655c42d6069f