Add Handler to cancel the dialog

1. Using a handler to cancel the alertDiaLog before SuveyPinCheck was
closed to prevent window leak
2. SensorService change a flag.