base: add quick_exit emulation.
am: 0c44256ae4

Change-Id: I28ebce03b898435b2ede2bace01778c2ee606a18