fix #35 save log when encounter phone crash or adb disconnect