Makefile for non Android debug build.
fixed handler thread cleanup when shell process exits abnormaly.