Fixed critical bug with Android run hook not detecting if emulator was quit.
Merge pull request #4903 from cb1kenobi/master

Fixed critical bug with Android run hook not detecting if emulator was quit.